namespace AltNetUK.Models.Inputs
{
    using System;

    public abstract class FormControl
    {
        public char AccessKey
        {
            get;
            set;
        }

        public bool Disabled
        {
            get;
            set;
        }

        public string Id
        {
            get;
            set;
        }

        public string Name
        {
            get;
            set;
        }

        public bool Required
        {
            get;
            set;
        }

        public string Title
        {
            get;
            set;
        }

        public abstract ValidationResult Validate(string value);
    }
}